
package com.jf.cloud.api.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 搜索符合定时任务条件的订单
 * @author zz
 * @date 2021/02/05
 */
@FeignClient(value = "jfcloud-search",contextId = "searchOrderRefundTask")
public interface SearchOrderRefundTaskFeignClient {
    /**
     * 取消申请超时的订单，无论该超时订单处于任何状态
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderRefundTask/cancelWhenTimeOut")
    ServerResponseEntity cancelWhenTimeOut();

    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderRefundTask/pressProximityTimeOutOrder")
    ServerResponseEntity pressProximityTimeOutOrder();

}
